<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <link rel="stylesheet" type="text/css" href="../../static/css/jpetstore.css"/>
    <meta charset="UTF-8">
    <title>All Goods</title>
    <link rel="stylesheet" href="../css/jpetstore.css" type="text/css" media="screen" />

</head>
<body>

<div th:replace="common/left">

</div>

<div id="BackLink">
    <a th:href = "'/admin_catalog/admin_viewProduct?productId='+${product.productId}">Return to <label th:text="${product.productId}" ></label></a>
</div>

<div id="bCatalog" >

    <table id="CPI">
        <tr>
            <td th:text="${product.getDescriptionText()}">product description</td>
        </tr>
        <tr>
            <td>
                <img th:src="${product.descriptionImage}">
                <label th:text="${product.descriptionText}"></label>
            </td>
        </tr>
        <tr>
            <td ><b th:text="${item.itemId}"> itemId </b></td>
        </tr>
        <tr>
            <td><b><font size="4" th:text="${item.attribute1}+' '+${product.name}"> item attribute1 +  product name </font></b></td>
        </tr>
        <tr>
            <td th:text="${product.name}">product name</td>
        </tr>
        <tr>
            <td>
                <label th:if="${item.quantity <= 0}">Back ordered.</label>
                <label th:if="${item.quantity > 0}" th:text="${item.quantity}+'in stock'">quantity in stock.</label>
            </td>
        </tr>
        <tr>
            <!--<td>-->
            <!--<fmt:formatNumber value="${sessionScope.item.listPrice}" pattern="$#,##0.00" />-->
            <!--</td>-->
            <td th:text="'$'+${#numbers.formatDecimal(item.listPrice,1,2)}">Item List Price</td>
        </tr>

        <tr>
            <td>
                <a class="Button" th:href = "'/admin_catalog/admin_changeItem?itemId='+${item.itemId}"> 修改</a>
                <a class="Button" th:href = "'/admin_catalog/admin_deleteItem?itemId='+${item.itemId}"> 删除</a>
            </td>
        </tr>
    </table>

</div>
</body>
</html>